package com.pns.Kkwaenggwari;

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;

public class Kkwaenggwari extends Activity implements OnClickListener {
	
	MediaPlayer mp;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ImageView image = (ImageView) findViewById(R.id.icon_select);
        Animation animation_1 = AnimationUtils.loadAnimation(this, R.anim.alpha);
        image.startAnimation(animation_1);
    
        Button button_1 = (Button)findViewById(R.id.icon_unselect);
        button_1.setOnClickListener(this);
    }
    
    public void onClick(View v){
    	if(v.getId() == R.id.icon_unselect) {
    		mp = MediaPlayer.create(this, R.raw.s1);
    		mp.start();
    		//mp.release();
    	}
    }
}
//